<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="js/swfobject.js"></script>
<script src="js/jquery-1.2.3.pack.js"></script>

<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>Database Performance Dashboard</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
</head>
<?php
	date_default_timezone_set("Asia/Singapore");
	$currTime=time();
?> 
  <body>
    <div id="container">
      <!-- Start of Page Header -->
      <div id="page_header">
          <div id="company_name">
          <h1><span>Oracle Database Performance Dashboard</span></h1>
          </div>
      </div>
      <div id="page_menu">
          <ul>
          <li class="home"><a href="./index.php" title="Home"><span>Home</span></a></li>
          <li class="monitor"><a href="./firstlevel.php" title="First Level of Parameters Monitor"><span>Monitor</span></a></li>
          <li class="debug"><a href="./debug.php" title="Debug Interface"><span>Debug</span></a></li>
          <li class="settings"><a href="./settings.php" title="Settings"><span>Settings</span></a></li>
          <li class="aboutus"><a href="./aboutUs.php" title="About Us"><span>About Us</span></a></li>
          </ul>
      </div>
	  <div id="logout"><a href="./logout.php">logout</a></div>
      <div id="main_content">
          <div class="content_header">
          <h2><span>Database Performance Dashboard</span></h2>
          </div>
          <div class="content_box_right">
          <div class="content_box_left">
          <div class="content_box">
          <div id="main_content_border">
              <div class="topmasters">
                  <div class="thumbnail">
                  <img src="images/_thumbnail02.gif" width="133" height="93" alt="Thumbnail Caption" />
              </div>
              <div class="topmasters_info">
			  <h2>Redo Log Buffer/Files Parameters<h2>
			  <br />
			  <br />
			  <br />
			 <th width="60%">Redo Space Wait Ratio</th>
			 <form id="second_redo1" action="secondlevel_redo.php" method="post"><label><font color="white">x unit time block: </font></label><input id="redo1" name="redo1" value="<?php if(!isset($_POST['redo1'])) echo '1'; else echo $_POST['redo1'];?>"/> <font color="white">hours</font>
			 <input id="redo2" type="hidden" name="redo2" value="<?php if(!isset($_POST['redo2'])) echo '1'; else echo $_POST['redo2'];?>"/> 
			 <input id="redo3" type="hidden" name="redo3" value="<?php if(!isset($_POST['redo3'])) echo '1'; else echo $_POST['redo3'];?>"/> 
			 <input id="redo4" type="hidden" name="redo4" value="<?php if(!isset($_POST['redo4'])) echo '1'; else echo $_POST['redo4'];?>"/> 
			 <input id="redo5" type="hidden" name="redo5" value="<?php if(!isset($_POST['redo5'])) echo '1'; else echo $_POST['redo5'];?>"/> <input type="submit" value="Refresh" /></form>
                <div id="redo2_bar_1"></div>
			<br />
			  <br />
			  <br />
			  <br />
			  <th width="60%">Redo Log Contention</th>
			  <br />
			  <br />
			 <th width="60%">Immediate Contention of Redo Allocation</th>
			 <form id="second_redo2" action="secondlevel_redo.php" method="post"><label><font color="white">x unit time block: </font></label>
			 <input id="redo2" name="redo2" value="<?php if(!isset($_POST['redo2'])) echo '1'; else echo $_POST['redo2'];?>"/> <font color="white">hours</font>
			 <input id="redo1" type="hidden" name="redo1" value="<?php if(!isset($_POST['redo1'])) echo '1'; else echo $_POST['redo1'];?>"/> 
			 <input id="redo3" type="hidden" name="redo3" value="<?php if(!isset($_POST['redo3'])) echo '1'; else echo $_POST['redo3'];?>"/> 
			 <input id="redo4" type="hidden" name="redo4" value="<?php if(!isset($_POST['redo4'])) echo '1'; else echo $_POST['redo4'];?>"/> 
			 <input id="redo5" type="hidden" name="redo5" value="<?php if(!isset($_POST['redo5'])) echo '1'; else echo $_POST['redo5'];?>"/>
			 <input type="submit" value="Refresh" /></form>
                <div id="redo2_bar_2"></div>
			<br />
			  <br />
			  <br />
			  <br />
			 <th width="60%">Immediate Contention of Redo Copy</th>
			 <form id="second_redo3" action="secondlevel_redo.php" method="post"><label><font color="white">x unit time block: </font></label><input id="redo3" name="redo3" value="<?php if(!isset($_POST['redo3'])) echo '1'; else echo $_POST['redo3'];?>"/> <font color="white">hours</font>
			 <input id="redo2" type="hidden" name="redo2" value="<?php if(!isset($_POST['redo2'])) echo '1'; else echo $_POST['redo2'];?>"/> 
			 <input id="redo1" type="hidden" name="redo1" value="<?php if(!isset($_POST['redo1'])) echo '1'; else echo $_POST['redo1'];?>"/> 
			 <input id="redo4" type="hidden" name="redo4" value="<?php if(!isset($_POST['redo4'])) echo '1'; else echo $_POST['redo4'];?>"/> 
			 <input id="redo5" type="hidden" name="redo5" value="<?php if(!isset($_POST['redo5'])) echo '1'; else echo $_POST['redo5'];?>"/>
			 <input type="submit" value="Refresh" /></form>
                <div id="redo2_bar_3"></div>
			<br />
			  <br />
			  <br />
			  <br />
			 <th width="60%">Wait Contention of Redo Allocation</th>
			 <form id="second_redo4" action="secondlevel_redo.php" method="post"><label><font color="white">x unit time block: </font></label><input id="redo4" name="redo4" value="<?php if(!isset($_POST['redo4'])) echo '1'; else echo $_POST['redo4'];?>"/> <font color="white">hours</font>
			 <input id="redo2" type="hidden" name="redo2" value="<?php if(!isset($_POST['redo2'])) echo '1'; else echo $_POST['redo2'];?>"/> 
			 <input id="redo3" type="hidden" name="redo3" value="<?php if(!isset($_POST['redo3'])) echo '1'; else echo $_POST['redo3'];?>"/> 
			 <input id="redo1" type="hidden" name="redo1" value="<?php if(!isset($_POST['redo1'])) echo '1'; else echo $_POST['redo1'];?>"/> 
			 <input id="redo5" type="hidden" name="redo5" value="<?php if(!isset($_POST['redo5'])) echo '1'; else echo $_POST['redo5'];?>"/>
			 <input type="submit" value="Refresh" /></form>
                <div id="redo2_bar_4"></div>
		     <br />
			  <br />
			  <br />
			  <br />
			 <th width="60%">Wait Contention of Redo Copy</th>
			 <form id="second_redo5" action="secondlevel_redo.php" method="post"><label><font color="white">x unit time block: </font></label><input id="redo5" name="redo5" value="<?php if(!isset($_POST['redo5'])) echo '1'; else echo $_POST['redo5'];?>"/> <font color="white">hours</font>
			 <input id="redo2" type="hidden" name="redo2" value="<?php if(!isset($_POST['redo2'])) echo '1'; else echo $_POST['redo2'];?>"/> 
			 <input id="redo3" type="hidden" name="redo3" value="<?php if(!isset($_POST['redo3'])) echo '1'; else echo $_POST['redo3'];?>"/> 
			 <input id="redo4" type="hidden" name="redo4" value="<?php if(!isset($_POST['redo4'])) echo '1'; else echo $_POST['redo4'];?>"/> 
			 <input id="redo1" type="hidden" name="redo1" value="<?php if(!isset($_POST['redo1'])) echo '1'; else echo $_POST['redo1'];?>"/><input type="submit" value="Refresh" /></form>
                <div id="redo2_bar_5"></div>
                  </div>
				  
				  
                  <div class="clearthis">&nbsp;</div>
              </div>
  
              <!-- End of Top Masters Listing 1 -->
  
          </div>
          </div>
          </div>
          </div>
  
      </div>
  
      <!-- End of Main Content -->
  
  
      <div class="clearthis">&nbsp;</div>
  
  
      <!-- Start of Page Footer -->
  
      <div id="page_footer">
      Design by <a href="aboutUs.php">CS5226 Group</a>
      </div>
  
  </div>
  
  </body>
  <script type="text/javascript">
swfobject.embedSWF("open-flash-chart.swf", "redo2_bar_1", "550", "400", "9.0.0"
, "expressInstall.swf",
  {"data-file":"redo2_bar_1.php?redo1="+$("#redo1").val()});
  
  
swfobject.embedSWF("open-flash-chart.swf", "redo2_bar_2", "550", "400", "9.0.0"
, "expressInstall.swf",
  {"data-file":"redo2_bar_2.php?redo2="+$("#redo2").val()});
 
 
swfobject.embedSWF("open-flash-chart.swf", "redo2_bar_3", "550", "400", "9.0.0"
, "expressInstall.swf",
  {"data-file":"redo2_bar_3.php?redo3="+$("#redo3").val()});
  
 
swfobject.embedSWF("open-flash-chart.swf", "redo2_bar_4", "550", "400", "9.0.0"
, "expressInstall.swf",
  {"data-file":"redo2_bar_4.php?redo4="+$("#redo4").val()}); 
  
swfobject.embedSWF("open-flash-chart.swf", "redo2_bar_5", "550", "400", "9.0.0"
, "expressInstall.swf",
  {"data-file":"redo2_bar_5.php?redo5="+$("#redo5").val()}); 
 
 function submitToReport1(index) {
  var submitForm = document.createElement("FORM");
   document.body.appendChild(submitForm);
   submitForm.method = "GET";
   var newElement = document.createElement("INPUT");
   newElement.name = "hour";
   newElement.type = "hidden";
   submitForm.appendChild(newElement);
   newElement.value = index;
   var newElement2 = document.createElement("INPUT");
   newElement2.name = "x";
   newElement2.type = "hidden";
   submitForm.appendChild(newElement2);
   newElement2.value = $("#redo1").val();
   submitForm.target= "_blank";
   submitForm.action= "thirdlevel_redo1.php";
   submitForm.submit();
}

 function submitToReport2(index) {
  var submitForm = document.createElement("FORM");
   document.body.appendChild(submitForm);
   submitForm.method = "GET";
   var newElement = document.createElement("INPUT");
   newElement.name = "hour";
   newElement.type = "hidden";
   submitForm.appendChild(newElement);
   newElement.value = index;
   var newElement2 = document.createElement("INPUT");
   newElement2.name = "x";
   newElement2.type = "hidden";
   submitForm.appendChild(newElement2);
   newElement2.value = $("#redo2").val();
   submitForm.target= "_blank";
   submitForm.action= "thirdlevel_redo2.php";
   submitForm.submit();
}

 function submitToReport3(index) {
  var submitForm = document.createElement("FORM");
   document.body.appendChild(submitForm);
   submitForm.method = "GET";
   var newElement = document.createElement("INPUT");
   newElement.name = "hour";
   newElement.type = "hidden";
   submitForm.appendChild(newElement);
   newElement.value = index;
   var newElement2 = document.createElement("INPUT");
   newElement2.name = "x";
   newElement2.type = "hidden";
   submitForm.appendChild(newElement2);
   newElement2.value = $("#redo3").val();
   submitForm.target= "_blank";
   submitForm.action= "thirdlevel_redo3.php";
   submitForm.submit();
}

 function submitToReport4(index) {
  var submitForm = document.createElement("FORM");
   document.body.appendChild(submitForm);
   submitForm.method = "GET";
   var newElement = document.createElement("INPUT");
   newElement.name = "hour";
   newElement.type = "hidden";
   submitForm.appendChild(newElement);
   newElement.value = index;
   var newElement2 = document.createElement("INPUT");
   newElement2.name = "x";
   newElement2.type = "hidden";
   submitForm.appendChild(newElement2);
   newElement2.value = $("#redo4").val();
   submitForm.target= "_blank";
   submitForm.action= "thirdlevel_redo4.php";
   submitForm.submit();
}

 function submitToReport5(index) {
  var submitForm = document.createElement("FORM");
   document.body.appendChild(submitForm);
   submitForm.method = "GET";
   var newElement = document.createElement("INPUT");
   newElement.name = "hour";
   newElement.type = "hidden";
   submitForm.appendChild(newElement);
   newElement.value = index;
   var newElement2 = document.createElement("INPUT");
   newElement2.name = "x";
   newElement2.type = "hidden";
   submitForm.appendChild(newElement2);
   newElement2.value = $("#redo5").val();
   submitForm.target= "_blank";
   submitForm.action= "thirdlevel_redo5.php";
   submitForm.submit();
}



</script>
  </html>